package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_qiye_site")
public class QiyeSite extends Model<QiyeSite> {

    public static final String ID = "id";
    public static final String QIYE_ID = "qiye_id";
    public static final String QIYE_NAME = "qiye_name";
    public static final String SITE_NAME = "site_name";
    public static final String AREA_CITY_ID = "area_city_id";
    public static final String SITE_PLACE = "site_place";
    public static final String LAT = "lat";
    public static final String LNG = "lng";
    public static final String STATUS = "status";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String SITE_LATITUDE = "site_latitude";
    private static final long serialVersionUID = 1L;
        /**
     * 主键
     */
         @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long qiyeId;
        /**
     * 企业名称
     */
         private String qiyeName;
        /**
     * 工地名称
     */
         private String siteName;
        /**
     * 工地位置地区ID
     */
         private String areaCityId;
        /**
     * 添加工地经纬度地点
     */
         private String sitePlace;
        /**
     * 纬度
     */
         private BigDecimal lat;
        /**
     * 经度
     */
         private BigDecimal lng;
        /**
     * 项目状态 1：进行中 2：已结束
     */
         private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
        /**
     * 是否删除 0-未删除 1-已删除
     */
         private Boolean delFlag;
    private String siteLatitude;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
